package com.molin.IOtest.charstreamTest.buffered;

import java.io.*;

public class Demo02 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("D:\\IdeaProjects\\BasicCode\\mIdeaTest\\src\\com\\molin\\IOtest\\charstreamTest\\a.txt"));
        bw.write(97);
        char[] chars = {97, 98, 99, 100, 101};
        bw.write(chars, 0, 3);
        bw.write("沫林是个程序员");
        String line = "abcdefg";
        bw.write(line, 0, 5);
        bw.flush();
        bw.close();
    }
}
